import { createApp } from 'vue'; // 导入 createApp 方法
import App from './App.vue'; // 导入最外层的App对象
import './common/base.css';
import * as elementIcons from '@element-plus/icons-vue'; // elementIcons 是对象
import router from './router/index'; //导入路由对象

const app = createApp(App);


// console.log(typeof app)
// 给app对象添加图标
for (let iconName in elementIcons) {
  app.component(iconName, elementIcons[iconName]);
}
//绑定路由
app.use(router).mount('#app'); // 挂载到 App.vue
